﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.Entity;

namespace HdipCricketClub.Models
{
    public class ResultTypeRepository
    {
        CricketClubEntities db = new CricketClubEntities();

        public ResultType GetResultType(int id)
        {
            return db.ResultTypes.Where(rt => rt.result_type_id == id).Single();
        }
    }
}